/*  {{ .Name }}-------- 代码自动生成部分------------开始*/
// 文件路径 项目根目录\api\{{ .FileApi }}\{{ .Name }}.go
// Creat 新建
type {{ .Name }}CreatReq struct {
	g.Meta `path:"/{{ .FileApi }}/{{ .Name  }}/creat" method:"{{ .ApiType }}" summary:"{{ .Name }}Creat" tags:"{{ .Name }}"`
	Form map[string]interface{} `json:"form" in:"query"  dc:"Creat对象"`
}
type {{ .Name }}CreatRes struct {
	g.Meta `mime:"json" example:"obj"`
	IsSuccess  bool `json:"isSuccess"   dc:"是否成功"`
}
// Update 修改
type {{ .Name }}UpdateReq struct {
	g.Meta `path:"/{{ .FileApi }}/{{ .Name }}/update" method:"{{ .ApiType }}" summary:"{{ .Name}}Update" tags:"{{ .Name }}"`
	Form *entity.{{ .EntityName }} `json:"form" in:"query"  dc:"Update对象"`
}
type {{ .Name }}UpdateRes struct {
	g.Meta `mime:"json" example:"obj"`
	IsSuccess  bool `json:"isSuccess"   dc:"是否成功"`
}
// React 读
type {{ .Name }}ReadReq struct {
	g.Meta `path:"/{{ .FileApi }}/{{ .Name }}/read" method:"{{ .ApiType }}" summary:"{{ .Name }}Read" tags:"{{ .Name }}"`
	Id int `json:"id" in:"query"  dc:"主键ID"`
}
type {{ .Name }}ReadRes struct {
	g.Meta `mime:"json" example:"obj"`
	Form  *entity.{{ .EntityName }} `json:"form"   dc:"对象"`
}
// Delete 删除
type {{ .Name }}DeleteReq struct {
	g.Meta `path:"/{{ .FileApi }}/{{ .Name }}/delete" method:"{{ .ApiType }}" summary:"{{ .Name }}Delete" tags:"{{ .Name }}"`
	Id int `json:"id" in:"query"  dc:"主键ID"`
}
type {{ .Name }}DeleteRes struct {
	g.Meta `mime:"json" example:"obj"`
	IsSuccess  bool `json:"isSuccess"   dc:"是否成功"`
}
// Delete 批量删除
type {{ .Name }}DeleteByIdsReq struct {
	g.Meta `path:"/{{ .FileApi }}/{{ .Name }}/deleteByIds" method:"{{ .ApiType }}" summary:"{{ .Name }}DeleteByIdsReq" tags:"{{ .Name }}"`
	Ids []int `json:"ids" in:"query"  dc:"主键ID数组"`
}
type {{ .Name }}DeleteByIdsRes struct {
	g.Meta `mime:"json" example:"obj"`
	IsSuccess  bool `json:"isSuccess"   dc:"是否成功"`
}
//  Batch批量操作
type {{ .Name }}BatchByIdsReq struct {
	g.Meta `path:"/{{ .FileApi }}/{{ .Name }}/batchByIds" method:"{{ .ApiType }}" summary:"{{ .Name }}DeleteByIdsReq" tags:"{{ .Name }}"`
	Ids []int `json:"ids" in:"query"  dc:"主键ID数组"`
	BatchType string `json:"batch_type" dc:"批量操作类型"`
	BatchValue interface{} `json:"batch_value" dc:"批量操作值"`
}
type {{ .Name }}BatchByIdsRes struct {
	g.Meta `mime:"json" example:"obj"`
	IsSuccess  bool `json:"isSuccess"   dc:"是否成功"`
}
// List 分页查询
type {{ .Name }}ListReq struct {
	g.Meta `path:"/{{ .FileApi }}/{{ .Name }}/list" method:"{{ .ApiType }}" summary:"{{ .Name }}List" tags:"{{ .Name }}"`
	Page *model.Page `json:"page" in:"query"  dc:"分页数据"`
}
type {{ .Name }}ListRes struct {
	g.Meta `mime:"json" example:"obj"`
	List  []*entity.{{ .EntityName }} `json:"list"   dc:"对象数组"`
	Total  int                        `json:"total" dc:"记录总数"`
}
/*   {{ .Name }}--------代码自动生成部分------------结束*/